﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WindowsGame1.ItemClasses
{
    public class Shield : BaseItem
    {
        int defenseValue;
        int defenseBonus;

        public int DefenseValue
        {
            get { return defenseValue; }
            protected set { defenseValue = value; }
        }

        public int DefenseBonus
        {
            get { return defenseBonus; }
            protected set { defenseBonus = value; }
        }

        public Shield(string shieldName,int price,int weight,ItemSize size,int defenseValue,int defenseBonus)
            : base(shieldName, price, weight, size)
        {
            DefenseValue = defenseValue;
            DefenseBonus = defenseBonus;
        }

        public override object Clone()
        {
            Shield shield = new Shield(Name,Price,Weight,Size,DefenseValue,DefenseBonus);
            return (object)shield;
        }
    }
}
